﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="hr_EmployeeFileStreams" targetNamespace="http://tempuri.org/hr_EmployeeFileStreams.xsd" xmlns:mstns="http://tempuri.org/hr_EmployeeFileStreams.xsd" xmlns="http://tempuri.org/hr_EmployeeFileStreams.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="ConnString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="ConnString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.ConnString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="hrEmployeeFileStreamsTableAdapter" GeneratorDataComponentClassName="hrEmployeeFileStreamsTableAdapter" Name="hrEmployeeFileStreams" UserDataComponentName="hrEmployeeFileStreamsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="ConnString (Web.config)" DbObjectName="AKDOA.dbo.hrEmployeeFileStreams" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[hrEmployeeFileStreams] WHERE (([Recordid] = @Original_Recordid))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Recordid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Recordid" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[hrEmployeeFileStreams] ([Recordid], [Precordid], [CreatedOn], [CreatedBy], [FileData], [Datstate], [FileName], [FileType]) VALUES (@Recordid, @Precordid, @CreatedOn, @CreatedBy, @FileData, @Datstate, @FileName, @FileType)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Recordid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Recordid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Precordid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Precordid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreatedOn" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreatedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@CreatedBy" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="CreatedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@FileData" Precision="0" ProviderType="Image" Scale="0" Size="0" SourceColumn="FileData" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Datstate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Datstate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FileName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FileName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FileType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FileType" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Recordid, Precordid, CreatedOn, CreatedBy, FileData, Datstate, FileName, FileType FROM dbo.hrEmployeeFileStreams</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[hrEmployeeFileStreams] SET [Recordid] = @Recordid, [Precordid] = @Precordid, [CreatedOn] = @CreatedOn, [CreatedBy] = @CreatedBy, [FileData] = @FileData, [Datstate] = @Datstate, [FileName] = @FileName, [FileType] = @FileType WHERE (([Recordid] = @Original_Recordid))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Recordid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Recordid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Precordid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Precordid" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreatedOn" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreatedOn" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@CreatedBy" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="CreatedBy" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Binary" Direction="Input" ParameterName="@FileData" Precision="0" ProviderType="Image" Scale="0" Size="0" SourceColumn="FileData" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Datstate" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Datstate" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FileName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FileName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@FileType" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="FileType" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_Recordid" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="Recordid" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Recordid" DataSetColumn="Recordid" />
              <Mapping SourceColumn="Precordid" DataSetColumn="Precordid" />
              <Mapping SourceColumn="CreatedOn" DataSetColumn="CreatedOn" />
              <Mapping SourceColumn="CreatedBy" DataSetColumn="CreatedBy" />
              <Mapping SourceColumn="FileData" DataSetColumn="FileData" />
              <Mapping SourceColumn="Datstate" DataSetColumn="Datstate" />
              <Mapping SourceColumn="FileName" DataSetColumn="FileName" />
              <Mapping SourceColumn="FileType" DataSetColumn="FileType" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="hr_EmployeeFileStreams" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="hr_EmployeeFileStreams" msprop:Generator_UserDSName="hr_EmployeeFileStreams">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="hrEmployeeFileStreams" msprop:Generator_TableClassName="hrEmployeeFileStreamsDataTable" msprop:Generator_TableVarName="tablehrEmployeeFileStreams" msprop:Generator_TablePropName="hrEmployeeFileStreams" msprop:Generator_RowDeletingName="hrEmployeeFileStreamsRowDeleting" msprop:Generator_RowChangingName="hrEmployeeFileStreamsRowChanging" msprop:Generator_RowEvHandlerName="hrEmployeeFileStreamsRowChangeEventHandler" msprop:Generator_RowDeletedName="hrEmployeeFileStreamsRowDeleted" msprop:Generator_UserTableName="hrEmployeeFileStreams" msprop:Generator_RowChangedName="hrEmployeeFileStreamsRowChanged" msprop:Generator_RowEvArgName="hrEmployeeFileStreamsRowChangeEvent" msprop:Generator_RowClassName="hrEmployeeFileStreamsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Recordid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnRecordid" msprop:Generator_ColumnPropNameInRow="Recordid" msprop:Generator_ColumnPropNameInTable="RecordidColumn" msprop:Generator_UserColumnName="Recordid" type="xs:string" />
              <xs:element name="Precordid" msdata:DataType="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_ColumnVarNameInTable="columnPrecordid" msprop:Generator_ColumnPropNameInRow="Precordid" msprop:Generator_ColumnPropNameInTable="PrecordidColumn" msprop:Generator_UserColumnName="Precordid" type="xs:string" minOccurs="0" />
              <xs:element name="CreatedOn" msprop:Generator_ColumnVarNameInTable="columnCreatedOn" msprop:Generator_ColumnPropNameInRow="CreatedOn" msprop:Generator_ColumnPropNameInTable="CreatedOnColumn" msprop:Generator_UserColumnName="CreatedOn" type="xs:dateTime" minOccurs="0" />
              <xs:element name="CreatedBy" msprop:Generator_ColumnVarNameInTable="columnCreatedBy" msprop:Generator_ColumnPropNameInRow="CreatedBy" msprop:Generator_ColumnPropNameInTable="CreatedByColumn" msprop:Generator_UserColumnName="CreatedBy" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FileData" msprop:Generator_ColumnVarNameInTable="columnFileData" msprop:Generator_ColumnPropNameInRow="FileData" msprop:Generator_ColumnPropNameInTable="FileDataColumn" msprop:Generator_UserColumnName="FileData" type="xs:base64Binary" minOccurs="0" />
              <xs:element name="Datstate" msprop:Generator_ColumnVarNameInTable="columnDatstate" msprop:Generator_ColumnPropNameInRow="Datstate" msprop:Generator_ColumnPropNameInTable="DatstateColumn" msprop:Generator_UserColumnName="Datstate" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FileName" msprop:Generator_ColumnVarNameInTable="columnFileName" msprop:Generator_ColumnPropNameInRow="FileName" msprop:Generator_ColumnPropNameInTable="FileNameColumn" msprop:Generator_UserColumnName="FileName" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="FileType" msprop:Generator_ColumnVarNameInTable="columnFileType" msprop:Generator_ColumnPropNameInRow="FileType" msprop:Generator_ColumnPropNameInTable="FileTypeColumn" msprop:Generator_UserColumnName="FileType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:hrEmployeeFileStreams" />
      <xs:field xpath="mstns:Recordid" />
    </xs:unique>
  </xs:element>
</xs:schema>